package com.yyfax.pay.quartz.adapter.impl.order;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yyfax.pay.common.annotation.NotifyType;
import com.yyfax.pay.common.enums.NotifyTaskTypeEnum;
import com.yyfax.pay.order.service.PayService;
import com.yyfax.pay.quartz.adapter.NotifyHandlerAdapter;
import com.yyfax.pay.third.model.to.yyfax.NotifyDataBinder;

@Service
@NotifyType(NotifyTaskTypeEnum.PAY)
public class PayNotifyHandler implements NotifyHandlerAdapter {

	@Resource
	private PayService payService;

	@Override
	public void handle(NotifyDataBinder binder) throws Exception {
		payService.parseNotify(binder);
	}

}
